package com.manage.competition.service;

import com.manage.competition.entity.EnrollCollection;

import java.util.List;

/**
 * Create with IDEA
 *
 * @Author: gitee.com/KamisamaXX
 * @Date: Create in 9:11 2019/4/8
 * @Description:
 */
public interface IEnrollCollectionService {
    int insert(EnrollCollection enrollCollection);

    int update(EnrollCollection enrollCollection);

    EnrollCollection findById(long id);

    List<EnrollCollection> findByUserId(long id);

    EnrollCollection findByUserIdAndCompetitionId(Long userId,Long competitionId);

    List<EnrollCollection> findByCompetitionId(long competitionId);
}
